我们不想把垃圾倒入回收站!
- 在事件内部,使用 if 语句来测试 litter 是否在 garbage 列表中。
- 在新的 if 语句内部,使用 Remove Sprite 删除 hit_sprite。
- 每次精灵捡到垃圾时,使用 Subtract Value 从 recycle_xp 中减去 1 分。
- 使用 Update Display 在 collected_display 中更新 recycle_xp 。
To navigate the page using the TAB key, first press ESC to exit the code editor.